package com.example.practicetest.entity;

/**
 * @author wushuang
 * 商品类
 * 包含id，名称，序列号，价格，库存
 */
public class Goods {
    private Integer id;
    private String name;
    /**
     * 这个 number 是商品的序列号
     */
    private String number;
    private Double price;
    private Integer stock;

    public Goods() {
    }


    public Goods(Integer id, String name, String number, Double price, Integer stock) {
        this.id = id;
        this.name = name;
        this.number = number;
        this.price = price;
        this.stock = stock;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }
}
